#ifdef DLLEXPORT
#define MYDLLTYPE __declspec(dllexport)
#else
#define MYDLLTYPE __declspec(dllimport)
#endif

#include <windows.h>
#include "TEMessage.h"

typedef void* PTextEngene;

extern "C"
{
	MYDLLTYPE PTextEngene CreateTextEngene(int x, int y, int width, int height, DWORD style, UINT id, HWND hParent);
	MYDLLTYPE BOOL TE_IsModified(PTextEngene te);
	MYDLLTYPE void TE_SetModified(PTextEngene te, BOOL modified);
	MYDLLTYPE void TE_GetText(PTextEngene te, wchar_t** str);
	MYDLLTYPE void TE_SetText(PTextEngene te, const wchar_t* str);
	MYDLLTYPE BOOL TE_IsReadOnly(PTextEngene te);
	MYDLLTYPE void TE_SetReadOnly(PTextEngene te, BOOL ReadOnly);
	MYDLLTYPE BOOL TE_IsSelection(PTextEngene te);
	MYDLLTYPE HWND TE_GetHwnd(PTextEngene te);
	MYDLLTYPE void DestructTextEngene(PTextEngene te);
}